package cn.stylefeng.guns.modular.basic.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.basic.entity.BasicDriver;
import cn.stylefeng.guns.modular.basic.model.params.BasicDriverParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicDriverResult;

/**
 * 驾驶员信息表 Mapper 接口
 */
public interface BasicDriverMapper extends BaseMapper<BasicDriver> {

    /**
     * 获取列表
     *
     * @author hu
     * @Date 2019-07-04
     */
    List<BasicDriverResult> customList(@Param("paramCondition") BasicDriverParam paramCondition);

    /**
     * 获取map列表
     *
     * @author hu
     * @Date 2019-07-04
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicDriverParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author hu
     * @Date 2019-07-04
     */
    Page<BasicDriverResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicDriverParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author hu
     * @Date 2019-07-04
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicDriverParam paramCondition);

	boolean saveBatchList(@Param("list")List<BasicDriverParam> list);

	BasicDriverResult findBySpec(@Param("paramCondition")BasicDriverParam param, @Param("operateId")Long operateId);

	Integer addReturnId(@Param("paramCondition")BasicDriverParam basicDriverParam);

    BasicDriverResult synchronization(@Param("paramCondition")BasicDriverParam basicDriverParam);

    BasicDriverResult findByName(@Param("name") String name, @Param("operateId")Long operateId);

}
